<?php

/*
 * 城市数据类
 */
class Application_Model_DbTable_checkip extends Application_Model_DbTable_DomainObject{
    
    protected $_name = 'uuch_ip';	
        
	public function getMapper(){
		return array('id','ip');
	}
	public function  getbyip($continent){
	    $db = $this->getAdapter();
	    $filter = $db->quoteInto(' status=1 and id > ?', $continent);            
	    $rows = $this->fetchAll($filter,'id');
	    
	    $result = array();
	    foreach ($rows as $row){
	        array_push($result,$this->convertRowToObject($row));                    
	    }           
	    return $result;
	}
}
?>
